package com.ruibang.glass.material.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 线边仓库位表
 * </p>
 *
 * @author mameng
 * @since 2024-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel( description = "线边仓库位表")
@TableName(value = "g_material_warehouse_location")
public class MaterialLineSideWarehouseLocation  implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "库位名称")
    private String locationName;

    @ApiModelProperty(value = "库位编号")
    private String locationCode;

    @ApiModelProperty(value = "所属仓库")
    private String warehouseName;

    @ApiModelProperty(value = "仓库Id")
    private String warehouseId;

    @ApiModelProperty(value = "状态1_启用 2_禁用")
    private String status;

    @ApiModelProperty(value = "关联容器状态Id")
    private String associatedContainerStatus;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "区分仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "容器状态Id")
    private String materialStatusId;

    @ApiModelProperty(value = "更新日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedDate;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "多选id")
    @TableField(exist = false)
    private List<String> ids;
}
